var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res) {
  res.render('index', { title: 'Express' });
});


router.get('/checklegou', function(req, res) {
	var  v = req.query.appVersion;
	console.log('req.body--->>'+JSON.stringify(req.query));
	if (v == "1.0.0") {
		res.send({"status":"1","msg":"这个版本可以上线","removecheck":"0"});
	}else{
		res.send({"status":"0","msg":"这个版本不允许上线","removecheck":"0"});
	}
  
});

module.exports = router;
